import Mock from "mockjs";
// 内存模拟数据
const arr = [];
for (let i = 0; i < 3; i++) {
  arr.push({
    id: Mock.mock("@id"),
  });
}

const userInfo = {
  id: Mock.mock("@id"),
  age: Mock.mock("@integer(18, 60)"),
  email: Mock.mock("@email"),
  phone: Mock.mock("@phone"),
  address: Mock.mock("@county(true)"),
  token: "---MY-PROJECT-TOKEN-298702039859---"
}

export default [
  {
    // 登录接口，返回token
    url: "/mock/login/loginIn",
    method: "post",
    response: () => {
      return {
        code: 200,
        message: "success",
        data: userInfo,
      };
    },
  },
];
